<?php
namespace app\admin\model;

/**
* 新闻
*/
class MessageModel extends \think\Model
{
	protected $table = 'messages';

    /**
     * 连(分类)表 查询所有新闻
     */
    public function getAllByPage($start, $size)
    {
        return $this->where('ISNULL(deleted_at)')->order('created_at desc')->limit($start, $size)->select();
    }
}
